
<jsp:directive.page import="java.util.Enumeration"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>Browser Information</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="-1">    

  </head>
  
  <body>
    <b><font color="red" size="15">Broswer Information</b></font> <br><br><br><br><br>
    <%  
    	out.println("<b>Request Content-type: </b>");
    	out.println(request.getContentType());
    	out.println("<br><br>");
    	
    	out.println("<b>Response Content-type: </b>");
    	out.println(response.getContentType());
    	out.println("<br><br>");
    	Enumeration headers = request.getHeaderNames();
    	while (headers.hasMoreElements())
    	{
    		String headerName = (String)headers.nextElement();
    		out.println("<b>" +headerName + ": </b>");
    		out.println(request.getHeader(headerName));
    		out.println("<br>");
    	}
	%>
    
  </body>
</html>
